<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    var info = {
      name: "why",
      age: 18,
      running: function () { console.log(this.name, "runing") },
      eating: function () { console.log(this.name, "eating") },
      studying: function () { console.log(this.name, "studying") }
    }
    info.name = 'kobe'
    info.running()
    info.eating()
    info.studying()
  </script>
</body>

</html>